#include <QDialog>
class QCustomPlot;
namespace Ui
{
    class OutputPicture;
}
// class QPixmap;
class OutputPicture : public QDialog
{
    Q_OBJECT
public:
    OutputPicture(QCustomPlot *plot, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());

private slots:
    bool on_accepted();
    void on_rejected();
    void on_comboBoxFormat_currentIndexChanged(int index);
    void on_horizontalSlider_valueChanged(int value);
private:
    QCustomPlot *plot = nullptr;
    Ui::OutputPicture *ui = nullptr;
    QPixmap mPixmap;
};